﻿using SqlSugar;
using System.Collections.Generic;
using System.ComponentModel;

namespace MESPro.Models
{
    /// <summary>
    /// 功能组,一个功能组包含有多个Function(多对多)
    /// </summary>
    [Tenant("Default")]
    public class FunctionGroup : EntityBaseIdNameCreat
    {
        /// <summary>
        /// 导航到所属父类
        /// </summary>
        public int ModelId { get; set; }
        /// <summary>
        /// 这个功能组下面的所有页面
        /// </summary>
        [DisplayName("页面集合"), Description("这个组下面包括的页面"), Category("只读属性"), Browsable(false)]
        [Navigate(typeof(RelationFunctionAndFunctionGroup), nameof(RelationFunctionAndFunctionGroup.FunctionGroupId), nameof(RelationFunctionAndFunctionGroup.FunctionId))]
        public List<Function> Functions { get; set; }
    }





}
